
package com.insigma.business.qrcode.soldier.dao;


import com.insigma.business.qrcode.soldier.dto.CommonDataDictBSearcher;
import com.insigma.business.qrcode.soldier.entity.CommonDataDictDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface CommonDataDictDao {

    CommonDataDictDO getByCode(String code);
    List<CommonDataDictDO> search(final CommonDataDictBSearcher innerSearcher);

    Integer setUsed(String code);

    CommonDataDictDO get(final String moduleName);

    
    Integer insert(final CommonDataDictDO commonDataDictDO);

    
    Integer update(final CommonDataDictDO commonDataDictDO);

    
    Integer delete(@Param("moduleName") final String moduleName,
                   @Param("modifierType") final String modifierType,
                   @Param("modifierId") final String modifierId);


    Integer deleteByCode(@Param("code") final String code,
                         @Param("modifierType") final String modifierType,
                         @Param("modifierId") final String modifierId);
}
